import { BasicColumn, FormProps } from '/@/components/Table';
export function getBasicColumns(): BasicColumn[] {
  return [
    {
      title: '活动编号',
      dataIndex: 'activityNo',
      width: 160,
      align: 'left',
    },
    {
      title: '二级域名',
      dataIndex: 'domainName',
      width: 120,
      align: 'left',
    },
  ];
}

export function getFormConfig(): Partial<FormProps> {
  return {
    labelWidth: 100,
    autoSubmitOnEnter: true,
    schemas: [
      {
        field: 'activityNo',
        component: 'Input',
        label: '活动编号',
        componentProps: {
          placeholder: '请输入活动编号',
        },
        colProps: {
          span: 12,
        },
      },
    ],
  };
}
